Namespace.addToNamespace( "org.keeporiel.Notifier", new function()
{
	console.log( "called" );
   function displayCredentialsError( msg )
   {
      displayError( "credentials", msg );
   }

   function displaySuccess( process, message )
   {
      message = ( message != undefined )? message: "";
      alert( message );
      display( "success", process, message );
   }
   
   function displayError( type, msg )
   {
      display( type + "Error", msg );
   }

   function display()
   {
      var args = arguments;
      var msg = chrome.i18n.getMessage.apply( chrome.i18n, args );
      alert( msg );
   }
   return { "displayError":             displayError, 
            "displaySuccess":  			displaySuccess, 
            "displayCredentialsError":  displayCredentialsError }
}() );
console.log( org.keeporiel.Notifier );